<template>
	<view>
		<u-navbar leftText="返回" title="材料预览">
			<view class="u-nav-slot" slot="left" @click="goBack">
				<view class="navbar-left">
					<u-icon name="arrow-left" size="16"></u-icon>	
					<span>返回</span>
				</view>
			</view>
		</u-navbar>
		<iframe :src="path"></iframe>
		<!-- <web-view :src="path" webview-styles="width:100vw;height:100vh"></web-view> -->
	</view>
</template>

<script>
	export default{
		data(){
			return{
				path: '',
				applyid: '',
				taskid: '',
				formid: '',
				stepid: '',
				processinstanceid: ''
			}
		},
		onLoad: function(option){
			this.path = option.path
			this.applyid = option.applyid
			this.taskid = option.taskid
			this.formid = option.formid
			this.stepid = option.stepid
			this.processinstanceid = option.processinstanceid
		},
		methods:{
			// 返回
			goBack() {
				uni.navigateBack()
			},
		}
	}
</script>

<style lang="scss" scoped>
	iframe{
		width: 100vw;
		height: 100vh;
	}
</style>